package com.mszlu.blog.service;


import com.mszlu.blog.dao.pojo.SysUser;
import com.mszlu.blog.vo.Result;
import com.mszlu.blog.vo.params.LoginParam;
import org.springframework.transaction.annotation.Transactional;


public interface LoginService {

    /**
     * 登陆
     * @param param
     * @return
     */
    Result login(LoginParam param);

    /**
     * 检验token
     * @param token
     * @return
     */
    SysUser checkToken(String token);

    /**
     * 退出登陆
     * @param token
     * @return
     */
    Result logout(String token);

    /**
     * 注册
     * @param loginParam
     * @return
     */
    Result registerUser(LoginParam loginParam);
}
